import http from '../index'

// 添加
export const addMenuApi = async (data) => await http.post('role/add/menu', data)

export const insertRoleApi = async (data) => await http.post('role/insert', data)
// 删除
export const deleteRoleApi = async (id) => await http.get(`role/delete/${ id }`)
export const getRoleMenuListApi = async (id) => await http.get(`role/menu/${ id }`)

// 详情
export const getRoleDetailApi = async (id) => await http.get(`role/${ id }`)

// 查询
export const getRoleApi = async (data) => await http.post('role/search', data)

// 更新
export const updateRoleApi = async (data) => await http.post('role/update', data)


